def powers(x,n):
    s = 1
    for i in range(n):
        s = s * x
    return s

def fac(n):
    s = 1
    for i in range(1,n+1):
        s = s * i
    return s


def sum(x):
    i=0
    s=0
    while (powers(x,i)/fac(i))>=1e-6:
        s=s+powers(x,i)/fac(i)
        i=i+1
    return s

x=int(input())
ex=sum(x)
print("%d powers of e = %.4f"%(x,ex))